package myThread;

/**
 * User: cool
 * Date: 2018/10/30
 * Time: 22:00
 */
public class ThreadTest extends Thread {
    @Override
    public void run() {
        super.run();
        System.out.println(22222222);
    }

    public static void main(String[] args){

        Runnable a = new Runnable() {
            @Override
            public void run() {
                System.out.println(11111111);
            }
        };
        new Thread(a).start();

        Thread b = new ThreadTest();
        Runnable c = new ThreadTest();
        b.start();



    }
}
